package com.guli.secKill;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

import javax.sql.DataSource;

/*
 * @Author 罗俊
 * @date 2020/11/30 - 11:29 上午
 *
 */
@EnableRabbit
@EnableRedisHttpSession
@EnableFeignClients
@EnableAsync // 开启异步任务
@EnableScheduling // 开启定时任务
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class SecKillApp {
    public static void main(String[] args) {
        SpringApplication.run(SecKillApp.class,args);
    }
}
